package com.msgserver.ejb.services;
import java.util.List;
import java.util.Set;

import javax.ejb.Local;

import com.msgserver.entity.Company;
import com.msgserver.entity.CompanyAdmin;
import com.msgserver.entity.Employee;
import com.msgserver.entity.EmployeeGroup;

@Local
public interface CompanyServiceLocal {
	
	public CompanyAdmin getCompanyAdminByLoginAndPassword(String login, String pwd);

	public Set<Employee> loadEmpsByCompany(Company company);
	
	public List<Company> loadAllCompanies();
	
	public Company persistCompany(Company company);
	
	public void deleteCompany(Company company);
	
	public EmployeeGroup persistGroup(EmployeeGroup group);
	
	public void deleteEmps(List<Employee> emps);
	
	public Company loadCompanyByName(String name);
	
	public List<Employee> getEmpBySearchKeyWord(String key, boolean isName);
	
	public Employee updateEmp(Employee emp);
	
	}
